﻿<!DOCTYPE html>

<html>
<head>

    <title>@ViewBag.Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9; IE=8; IE=7" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validationEngine.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validationEngine-en.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/jquery.numeric.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.maskedinput-1.3.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.mouse.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.dialog.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.position.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.bgiframe-2.1.2.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.core.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.widget.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.Epi.Survey.Components.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/CheckCodeEngine.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.PreventEnter.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/idle-timer.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-sliderAccess.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.idletimeout.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.idletimer.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Print.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/css/awesomplete.css")" rel="Stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/awesomplete.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/css/page.css")" rel="Stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/validationEngine.jquery.css")" rel="Stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/ui-lightness/jquery-ui-1.8.16.custom.css")" rel="Stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/jquery.ui.all.css")" rel="Stylesheet" type="text/css" />
  
    @if (System.Configuration.ConfigurationManager.AppSettings["CUSTOM_THEME"] == "TEALGREEN")
    {
        <link href="@Url.Content("~/Content/css/epistyle.css")" rel="Stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/css/epistyle_controls.css")" rel="Stylesheet" type="text/css" />

    }
    else
    {

        <link href="@Url.Content("~/Content/css/epistyle-blue.css")" rel="Stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/css/epistyle-blue_controls.css")" rel="Stylesheet" type="text/css" />

    }
    
    <meta name="viewport" content="width=device-width" >
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.tools.min.js")"></script>

   <script type="text/javascript">

       //debugger;

       $(document).ready(function () {

          
           $('#successContent').hide();


           $("#myform").validationEngine();

           $('div#pages a').click(PostForm);
           function PostForm(event) {
               // Clicking the navigation links at the top, get the target Url and then post the form
               document.forms[0].action = event.target.href;

               $("#myform").submit();

               return false;
           }



//           if ($.browser.msie && $.browser.version < 9) $('select.wide')
//                .bind('focus mouseover', function() { $(this).addClass('expand').removeClass('clicked'); })
//                .bind('click', function() { $(this).toggleClass('clicked'); })
//                .bind('mouseout', function() { if (!$(this).hasClass('clicked')) { $(this).removeClass('expand'); }})
//                .bind('blur', function() { $(this).removeClass('expand clicked'); });


               var firstControl = $('form *:input[type!=hidden]:enabled:first');
               if(firstControl != null)
               {
                    firstControl.focus();
               }


       });

 
      
     </script> 
 
      <!--[if lt IE 9]>
	<script>
		$(function() {
		
			var el;
			
			$("select.fix-me")
				.each(function() {
					el = $(this);
					el.data("origWidth", el.outerWidth()) // IE 8 will take padding on selects
				})
			  .mouseenter(function(){
			    $(this).css("width", "auto");
			  })
			  .bind("blur change", function(){
			  	el = $(this);
			    el.css("width", el.data("origWidth"));
			  });
		
		});
	</script>
	<![endif]-->
    
</head>
<body>
     
     <div id ="container" style =" width:@TempData["Width"]px">
            
            <div id="body">
                @RenderBody()
                
            </div>
          
                   
            
       @Html.Partial("FooterPartial")
    </div>
     
    
</body>
</html>
 
